import { createRouter, createWebHistory, createWebHashHistory, RouteRecordRaw } from 'vue-router'
import Index from '../views/Index/index.vue'

const routes: RouteRecordRaw[] = [
    {
        name: 'Index',
        path: '/',
        component: Index,
    },
    // {
    //     name: 'Test',
    //     path: '/test',
    //     component: () => import('../views/test.vue')
    // }
]

const router = createRouter({
    history: import.meta.env.DEV ? createWebHistory() : createWebHashHistory(),
    routes,
})

export default router
